package com.jt.www.enums;


/**
 * 描述：返回的错误码和异常说明
 * 类名称：ResultEnum
 * 作者： wangyang
 * 版本：1.0
 * 修改：
 * 创建日期：
 * 版权：江泰保险经纪股份有限公司
 */
public enum ResultEnum implements BaseEnum, ErrorCode {

    PAY_SUCCESS(SUCCESS_CODE_0000, SUCCESS_MSG),

    SUCCESS_0000(SUCCESS_CODE_0000, SUCCESS_MSG),

    SUCCESS(SUCCESS_CODE, SUCCESS_MSG),

    SUCCESS_NO_MSG(SUCCESS_CODE, ""),

    PARAM_ERROR(PARAM_ERROR_CODE, PARAM_ERROR_MSG),

    URL_ERROR(URL_ERROR_CODE, URL_ERROR_MSG),

    RESOUCE_ERROR(RESOUCE_ERROR_CODE, RESOUCE_ERROR_MSG),

    SERVER_ERROR(SERVER_ERROR_CODE, SERVER_ERROR_MSG),

    REDIRECT(REDIRECT_CODE, REDIRECT_MSG),

    ERROR_9999(ERROR_CODE_9999, SERVER_ERROR_MSG);


    private Object code;

    private String msg;

    ResultEnum(Object code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    @Override
    public Object getCode() {
        return code;
    }


    @Override
    public String getMsg() {
        return msg;
    }

}
